#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/types.h>
#include <dirent.h>

static int test() 
{
	DIR * p_dir = NULL;
	struct dirent * dp = NULL;

	p_dir = opendir("/home/share/work/ac-code/test-verification/dir/test");
	if (p_dir == NULL) {
	   return (-1);
	}

	while ((dp = readdir(p_dir)) != NULL) {	 
		if (strstr(dp->d_name, "x4p") != NULL) {
            printf("ssss:%s\n", dp->d_name);
		} else if (strstr(dp->d_name, "x5") != NULL) {
            printf("ssss:%s\n", dp->d_name);
		}
	}

	(void)closedir(p_dir);

	return 0;
}


int main()
{
	test();

	return 0;
}
